/**
 * author:zhh date:2013-11-25
 * 利税预测模型
 */
Cnbi.model.Tax = function(params){
 	Cnbi.model.BaseSliderAndProgress.call(this, params);
 	defaults = this.defaults;
    var scope = this,domArray = params["domArray"];
 	
    this.initPage=function(){
	    if(!scope.flag){//alert("子类的initPage");
	      		CnbiSoft.setCurrentRenderer("JavaScript");
	    }

	    setFormula(false);
	    scope.setSliderValue(params.slider_array, scope.datas, "Idinput");
	    scope.setProgressValue(params.progress_array,scope.datas, "Idspan");
	    this.initChart(true);   	
    }
	
    this.initChart=function(action){   	  
    }    	        	           

    this.updataInputAfter=function(id ,value,datas ){		
	    setFormula(true); 
    };

    function setFormula(action) {		   	      
    }

	scope.init();	
 }

Ext.onReady(function(){
	var slider_array=module["sliderItemScode"].split(",");
	var params ={itemIndex:module["queryItemScode"],showDim:'item',povitDim:'item',queryFact:'B',company:'YC1',type:"tax",year :qj.year,month :qj.month,unit :qj.unit};
    var toolsMap = module["toolsMap"];
    var bean =  new Cnbi.model.Tax({
    	id:module["id"],
		slider_array:slider_array,
		params:params,
		progress_array:[
		    toolsMap["zyysr3"]["scode"],
		    toolsMap["zyysr2"]["scode"],
		    toolsMap["zyysr1"]["scode"],
		    toolsMap["xlx"]["scode"],
		    toolsMap["dxsr"]["scode"],
		    toolsMap["mlv2"]["scode"],
		    toolsMap["mlv1"]["scode"],
		    toolsMap["zyycb"]["scode"],
		    toolsMap["xfs"]["scode"],
		    toolsMap["yys"]["scode"],
		    toolsMap["zyywml"]["scode"],
		    toolsMap["zzs"]["scode"],		    
		    toolsMap["cjs"]["scode"],
		    toolsMap["jyfjs"]["scode"],
		    toolsMap["dfjyfjs"]["scode"],
		    toolsMap["yysjjfj"]["scode"],
		    toolsMap["fyze"]["scode"],
		    toolsMap["dfwhf"]["scode"],
		    toolsMap["jgtjzj"]["scode"],
		    toolsMap["fjs"]["scode"],
		    toolsMap["cbfyze"]["scode"],
		    toolsMap["yylr"]["scode"],
		    toolsMap["lrze"]["scode"],
		    toolsMap["sds"]["scode"],		    
		    toolsMap["yjsj"]["scode"],
		    toolsMap["ls"]["scode"],
		    toolsMap["sxs"]["scode"],
		    toolsMap["qtywsr"]["scode"],
		    toolsMap["qtywcb"]["scode"],		    
		    toolsMap["tzsy"]["scode"],
		    toolsMap["yywzc"]["scode"],
		    toolsMap["yywsr"]["scode"],
		    toolsMap["fyl"]["scode"]
		    ],
		updateInput:'Idinput',
		pro:{width:90,height:18},
	    sli:{width:129,width2:100},
		//domArray:["zzcbzvId","zzczzvId","chartId","_cnbi_chartId"],
		companyName:company["text"],
		module:module
	 }); 	 	
});